Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Unignore .c files under _libs/src. (#42116) #42117

Closed
wants to merge 1 commit into from

Conversation

dalejung
Copy link
Contributor

Not 100% what tests I could write for this. This works locally. git status shows no untracked files while rg on_bad_lines now shows results from pandas/_libs/src/parser/tokenizer.c

@@ -97,6 +97,8 @@ scikits
!np_datetime_strings.c
*.c
*.cpp
# Unignore source c files
!pandas/_libs/src/**/*.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The np_datetime.c and np_datetime_strings.c above are in pandas/_libs/tslibs/src

maybe would could include .c files under any directory named src in the _libs tree

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the np lines since they are caught by my new line. The line I added will ignore all c files under src/ so we're good there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be !pandas/_libs/**/src/**/*.c so that any .c files added to the pandas/_libs/tslibs/src are included in the future.

@dalejung dalejung force-pushed the fix_gitignore_for_src_c branch from de44926 to 9be6afd Compare June 19, 2021 18:03
@jreback
Copy link
Contributor

jreback commented Jul 4, 2021

this is to not include the source in the distribution? where is this breaking?

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2021

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Aug 4, 2021
@simonjayhawkins
Copy link
Member

@dalejung can you address #42117 (comment) and merge upstream/master (should fix ci)

@mroeschke
Copy link
Member

Thanks for the PR, but it appears to have gone stale. Let us know if you're still interested in working on this and we can reopen. Closing.

@mroeschke mroeschke closed this Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: source .c files under _lib/src being gitignored.
4 participants